
public class Foo {

	private int len = 1;

	public void bar() {
		len++;
		//bar();
	}

	public static void main(String[] args) throws Throwable {
		Foo foo = new Foo();
		try {
			foo.bar();
		} catch (Throwable e) {
			System.out.println("stack lenth:" + foo.len);
			throw e;
		}

	}
}
